package java_DesignPattern.StructuralPattern.FlyweightPattern;

/**
 * 抽象享元角色
 */
public abstract class AbstractShape {

    public abstract String getShape();

    public void display(String color){
        System.out.println("图形为"+color+"的"+getShape());
    }
}
